agents
Class FuzzyAgent

java.lang.Object
  extended by negotiator.Agent
      extended by agents.FuzzyAgent

public class FuzzyAgent
extends Agent


Field Summary
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
FuzzyAgent()
           
 
Method Summary
protected static boolean Buyer(int i)
           
static double CalculateCost(double constant, int NoIteration)
           
 Action chooseAction()
          this function is called after ReceiveMessage, with an Offer-action.
static double FinalDistance(double[] dist)
           
static void FuzzyDist()
           
static java.lang.String getVersion()
           
 void init()
          This method is called by the protocol every time before starting a new session after the internalInit method is called.
static double[] Intersection(double[] xPars, double[] yPars)
          Function Intersection returns intersection of two lines
 void ReceiveMessage(Action opponentAction)
          informs you which action the opponent did
protected static boolean Seller(int i)
           
static double ThreshFind(int deadline, int time, double pick, double stretch)
          Function threshfind() which receives the current time of negotiation, pick value and stretch value of the offers and generates the threshhold for each offer
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyAgent

public FuzzyAgent()
Method Detail

chooseAction

public Action chooseAction()
Description copied from class: Agent
this function is called after ReceiveMessage, with an Offer-action.

Specified by:
chooseAction in class Agent
Returns:
(should return) the bid-action the agent wants to make.

getVersion

public static java.lang.String getVersion()

init

public void init()
Description copied from class: Agent
This method is called by the protocol every time before starting a new session after the internalInit method is called. User can override this method.

Overrides:
init in class Agent

ReceiveMessage

public void ReceiveMessage(Action opponentAction)
Description copied from class: Agent
informs you which action the opponent did

Overrides:
ReceiveMessage in class Agent

CalculateCost

public static double CalculateCost(double constant,
                                   int NoIteration)

Buyer

protected static boolean Buyer(int i)

Seller

protected static boolean Seller(int i)

ThreshFind

public static double ThreshFind(int deadline,
                                int time,
                                double pick,
                                double stretch)
Function threshfind() which receives the current time of negotiation, pick value and stretch value of the offers and generates the threshhold for each offer


Intersection

public static double[] Intersection(double[] xPars,
                                    double[] yPars)
Function Intersection returns intersection of two lines


FuzzyDist

public static void FuzzyDist()

FinalDistance

public static double FinalDistance(double[] dist)